#include <bits/stdc++.h>
using namespace std;
int main()
{
	char aa[105],bb[105];
	cin.getline(aa,100);
	int len=strlen(aa);
	
	for (int i=0; i<=len-2; i++)
	{
		bb[i]=aa[i]+aa[i+1];
	}
	
	int temp=len-1;
	bb[temp]=aa[temp]+aa[0];
	cout<<bb;
	
	return 0;
}